package com.xwzn.resident;

import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

/**
 * @Description 登录界面
 * @Author HanKaiYang
 * @CreateDate 2019/12/23 11:05
 * @Version 1.0
 */
public class LoginActivity extends AppCompatActivity {

    private ImageView ivTitleBack;
    private TextView tvLoginXy;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initView();
    }

    /**
     * @deprecated 初始化视图
     * @author HanKaiYang
     * @createDate 2019/12/23 11:14
     * @version 1.0
     */
    private void initView() {
        ivTitleBack = findViewById(R.id.iv_title_back);
        ivTitleBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });

        tvLoginXy = (TextView) findViewById(R.id.tv_login_xy);
        String str = "若手机号未注册，将会进入注册流程。注册即视为同意<font color='#083282'>《注册协议》、《隐私协议》</font>";
        tvLoginXy.setText(Html.fromHtml(str));
    }
}
